<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../../attr.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<link rel="stylesheet" href="${ctx}/css/sapar.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/sapar.js"></script>
<script type="text/javascript" src="${ctx}/js/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/assets/layer/layer.js"></script>
<style type="text/css">
.login-times{
	margin:10px;
	color: #333;
	font-family: '微软雅黑';
	font-size: 13px;
}
.login-times li{
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
}
.login-times li strong{
	padding: 0 5px;
	font-weight: bold;
}
.login-times li span{
	padding: 0 5px;
	color: #e30000;
	font-weight: bold;
}
.kv-item label{
	width: 130px;
	float:left;
}
</style>
<title>问卷查看</title>
</head>

<body>
    <div id="saper-container">
        <div id="saper-hd"></div>
        <div id="saper-bd">
            <div class="subfiled clearfix">
                <h2>问卷查看</h2>
            </div>
			<div class="subfiled-content">
				 <div class="kv-item clearfix">
                    <label>问卷名称：${wenjuan.wenjuanName}</label>
                    <label>试用科室：${wenjuan.department.departmentName}</label>   
	             </div>
	             <ul class="login-times">
	             	<c:forEach items="${wenjuan.questions}" var="questions" varStatus="i">
                    	<li>
                   			问题${i.index+1}:<strong>${questions.question}</strong><br/>
                   			<c:if test="${questions.datiType == 1}">
                   				 <c:forEach items="${questions.answerList}" var="answer">
                   				 	<input type="checkbox" name="answers" value="${answer.label} "/>${answer.labelVal} &nbsp;&nbsp;&nbsp;&nbsp;  
                   				 </c:forEach>
                   			</c:if>
                   			<c:if test="${questions.datiType == 2}">
                   				 <c:forEach items="${questions.answerList}" var="answer">
                   				 	<input type="radio" name="answers" value="${answer.label} "/>${answer.labelVal} &nbsp;&nbsp;&nbsp;&nbsp; 
                   				 </c:forEach>
                   			</c:if>
                   			<div id="t${questions.id}">
                   			<c:set var="key" value="${questions.id}"/>
                    	  	      <c:forEach items="${resultMap[questions.id]}" var="labels">
				             			${labels.labelVal}:${labels.labelCount}  
				                  </c:forEach>
                    	     </div>
                    	</li>
                    </c:forEach>
                </ul>
            </div> 
        </div>
        <div id="saper-ft"></div>
    </div>
    
</body>


</html>